import { Router } from 'express';
import { authMiddleware } from '../middlewares/auth.middleware';
import {
  listConversations,
  markAsRead,
  removeConversation
} from '../controllers/conversation.controller';

const router = Router();
router.use(authMiddleware);

router.get('/list', listConversations); // 获取会话列表
router.post('/read', markAsRead); // 标记为已读
router.delete('/:id', removeConversation); //删除会话

export default router;
